<xsl:stylesheet version="2.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
	<xsl:output method="xml" encoding="utf-8"
		doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
		indent="yes" />
	<xsl:param name="rootPath" />
	<xsl:template match="/">
		<html xmlns="http://www.w3.org/1999/xhtml">
			<head>
				<meta name="keywords" content="" />
				<meta name="description" content="" />
				<meta http-equiv="content-type" content="text/html; charset=utf-8" />
				<title>Team.fr</title>
				<link href="/xml/style.css" rel="stylesheet" type="text/css"
					media="screen" />
			</head>
			<body>
				<div id="wrapper">
					<div id="header" class="container">
						<div id="logo">
							<h1>
								<a href="./">Team.fr</a>
							</h1>
							<p>le meilleur site footballistique du monde</p>
						</div>
					</div>
					<!-- end #header -->
					<div id="page" class="container">
						<div id="content">
							<xsl:apply-templates />
							<div style="clear: both;">
								<xsl:text> </xsl:text>
							</div>
						</div>
						<!-- end #content -->
						<div style="clear: both;">
							<xsl:text> </xsl:text>
						</div>
					</div>
					<!-- end #page -->
				</div>
				<div id="footer-content" class="container">
					<div id="footer-bg">
						<div id="column1">
							<h2>Welcome to my website</h2>
							<p>In posuere eleifend odio quisque semper augue mattis wisi
								maecenas ligula. Donec leo, vivamus fermentum nibh in augue
								praesent a lacus at urna congue rutrum. Quisque dictum integer
								nisl risus, sagittis convallis, rutrum id, congue, and nibh.
							</p>
						</div>
						<div id="column2">
							<h2>Etiam rhoncus volutpat</h2>
							<p>Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam
								bibendum. In nulla tortor, elementum vel, tempor at, varius non,
								purus. Mauris vitae nisl nec metus consectetuer. Donec ipsum.
								Proin imperdiet est. Phasellus dapibus semper urna.
							</p>
						</div>
						<div id="column3">
							<h2>Recommended Links</h2>
							<ul>
								<li>
									<a href="#">Consectetuer adipiscing elit</a>
								</li>
								<li>
									<a href="#">Metus aliquam pellentesque</a>
								</li>
								<li>
									<a href="#">Suspendisse iaculis mauris</a>
								</li>
								<li>
									<a href="#">Urnanet non molestie semper</a>
								</li>
								<li>
									<a href="#">Proin gravida orci porttitor</a>
								</li>
							</ul>
						</div>
					</div>
				</div>
				<div id="footer">
					<p>
						Copyright (c) 2011 Sitename.com. All rights reserved. Design by
						<a href="http://www.freecsstemplates.org/">Free CSS Templates</a>
						.
					</p>
				</div>
				<!-- end #footer -->
			</body>
		</html>

	</xsl:template>

	<xsl:template match="club">
		<div class="post">
			<h2 class="title">
				<a href="#">
					<xsl:value-of select="name" />
				</a>
			</h2>
			<div style="clear: both;">
				<xsl:text> </xsl:text>
			</div>
			<div class="entry">
				<table>
					<tr>
						<td>Fonder en :</td>
						<td>
							<xsl:value-of select="@establishment" />
						</td>
					</tr>
					<tr>
						<td>Président :</td>
						<td>
							<xsl:value-of select="president/lastName" />
							<xsl:text> </xsl:text>
							<xsl:value-of select="president/firstName" />
						</td>
					</tr>
					<tr>
						<td>Entraineur :</td>
						<td>
							<xsl:value-of select="coach/lastName" />
							<xsl:text> </xsl:text>
							<xsl:value-of select="coach/firstName" />
						</td>
					</tr>
				</table>

				<div style="clear: both;">
					<xsl:text> </xsl:text>
				</div>
				<xsl:apply-templates select="players" />

			</div>
		</div>
	</xsl:template>

	<xsl:template match="players">
		<table class="playersList">
			<thead>
				<tr>
					<th>N°</th>
					<th>Nom</th>
					<th>Prenom</th>
					<th>Nationalite</th>
					<th>Age</th>
					<th>Poste</th>
					<th>Taille</th>
					<th>Poids</th>
					<th>Portable</th>
					<th>Paye</th>
				</tr>
			</thead>
			<tbody>
				<xsl:for-each select="player">
					<tr>
						<td><xsl:value-of select="@number"/></td>
						<td><xsl:value-of select="lastName"/></td>
						<td><xsl:value-of select="firstName"/></td>
						<td><xsl:value-of select="nationality"/></td>
						<td><xsl:value-of select="age"/></td>
					</tr>
				</xsl:for-each>
			</tbody>
		</table>
	</xsl:template>

</xsl:stylesheet>
